package com.smfx.yxt.view;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class InterestCourseStudentSignView {

	private Integer courseId;
	  
	private String courseName;
	  
	private Integer studentId;
	  
	private String studentName;
	
	private Integer grade;
	
	private Integer clazz;

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public String getStudentName() {
		return studentName;
	}

	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getClazz() {
		return clazz;
	}

	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}
	
	public String getGradeName() {
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		String grade = view.getGradeName(this.grade);
		if(grade == null) return "无";
		return grade;
	}
}
